package service

import (
	"choujiang/common/models"
	"choujiang/common/db"
	"fmt"
)

func GetTutorialLinks() ([]model.Tutorial, error) {
	links := make([]model.Tutorial, 0)
	err := db.MysqlEngine.Find(&links)
	if err != nil {
		fmt.Printf("GetTutorialLinks err:%+v\n", err)
	}
	return links, err
}
